﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace MyPublisher.Framework
{
    public abstract class Connector
    {
        public string ID { get; set; }
        public ConnectorType Type { get; set; }

        protected TypesFactory typesFactory;
        protected EntityFactory entityFactory;
        protected Location location;

        protected Connector(TypesFactory typesFactory, 
            EntityFactory entityFactory, 
            Location location,
            ConnectorType type)
        {
            this.ID = Guid.NewGuid().ToString();
            this.location = location;
            this.typesFactory = typesFactory;
            this.entityFactory = entityFactory;
            this.Type = type;
        }

        public abstract void Connect();
    }
}
